package com.dao;

import java.util.List;

import com.entity.Employee;
import com.entity.Role;
import com.util.Page;

@SuppressWarnings("unchecked")
public class RolesDao extends BaseDAO {

	/**
	 * 保存EMPloyee
	 * @param emp
	 * @return
	 */
	public boolean saveRole(Role role){
		return this.saveObject(role);
	}
	
	/**
	 * 查询分页结果集
	 * @param page
	 * @return page
	 * @throws Exception
	 */
	public Page findRolePage(Page page) throws Exception{
		return this.queryObjectForPage(Role.class, page);
	}
	
	/**
	 * 查询分页结果集
	 * @param page
	 * @return page
	 * @throws Exception
	 */
	public List findRolelist() throws Exception{
		return this.queryObject(Role.class);
	}
}
